package com.example.shiwuyouproject.ui.fragment.my.activity.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.shiwuyouproject.R
import com.example.shiwuyouproject.ui.fragment.my.activity.bean.DataBean

class SubjectRightAdapter:BaseQuickAdapter<DataBean,BaseViewHolder> (R.layout.item_subjectright){
    override fun convert(helper: BaseViewHolder?, item: DataBean?) {
        helper?.setText(R.id.tvName,item?.name)
        helper?.getView<TextView>(R.id.tvName)?.isSelected=item?.subItemStatus!!
    }
}